//安环管理系统/环保指标报警管理
import React, { Component } from 'react';
import { connect } from 'dva';
import {  Tabs  } from 'antd';
import style from './IndexTransfinite.less';
import IndexDay from './sub1/IndexDay';
import IndexHistory from './sub1/IndexHistory';
//tab切换套件
const TabPane = Tabs.TabPane;



class IndexTransfinite extends Component {
    state = {

    };


    render() {
        return (



            <div>
                <Tabs defaultActiveKey="1" 
                    tabBarStyle={{ margin: 0, border: 0, overflow: 0 }}

                >
                    <TabPane tab="当日报警" key="1">

                    <IndexDay
                     history ={this.props.history}
                    />
                    </TabPane>
                    <TabPane tab="历史报警" key="2" >
                    <IndexHistory
                     history ={this.props.history}
                    />

                    </TabPane>

                </Tabs>

            </div>

        )
    }
}

export default connect()(IndexTransfinite)